<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">危险作业审批</div>
                    <div class="layui-card-body">
                        <table class="layui-table layui-form">
                            <colgroup>
                              <col width="300">
                              <col width="200">
                              <col>
                            </colgroup>
                            <thead>
                              <tr>
                                <th>危险作业名称</th>
                                <th>位置</th>
                                <th>申请人</th>
                                <th>监管人意见</th>
                                <th>直管部门</th>
                                <th>其他部门</th>
                                <th>公司领导意见</th>
                                <th>申请结果</th>
                                <th>附件</th>
                              </tr> 
                            </thead>
                            <tbody>
                              <tr>
                                <td>动火作业</td>
                                <td>A区</td>
                                <td>杨冰</td>
                                <td><input type="checkbox" name="switch2" lay-skin="switch"  lay-filter="switchTest" lay-text="同意|不同意" ></td>
                                <td><input type="checkbox" name="switch2" lay-skin="switch" lay-filter="switchTest"  lay-text="同意|不同意" ></td>
                                <td><input type="checkbox" name="switch2" lay-skin="switch"  lay-filter="switchTest" lay-text="同意|不同意" ></td>
                                <td><input type="checkbox" name="switch2" lay-skin="switch"  lay-filter="switchTest" lay-text="同意|不同意" ></td>
                                <td><input type="checkbox" name="switch2" lay-skin="switch"  lay-filter="switchTest" lay-text="同意操作|不同意操作" ></td>                                
                                <td>动火作业.doc</td>
                              </tr>
                            </tbody>
                          </table>      
                          
                          <div class="layui-form-item">
                            <div class="layui-input-block">
                              <button class="layui-btn" lay-submit="" lay-filter="component-form-element">点击确认执行</button>
                            </div>
                          </div>                        
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'table', 'form'], function () {
            var admin = layui.admin ,form = layui.form, table = layui.table; 

            
			    form.on('switch(switchTest)', function (data) {
					layer.prompt({
					  formType: 2,
					  value: '',
					  title: '请输入意见信息',
					  area: ['500px', '350px'] //自定义文本域宽高
					}, function(value, index, elem){
					  alert(value); //得到value
					  layer.close(index);
					});
				});


        });
    </script>
</body>

</html>